<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>demo 2-45</title>
	</head>
	<body>
	</body>
	<script>
		function area(width,height){
			let s=width*height;
			return s;
		}
		export {area};
		//
		export * from './rect.js';
		export let pi=3.1415;
		export default function(width,height){
			let m=2*(width+height);
			return m;
		}
		//
		import * as rectplus from './rectPlus.js';
		console.log(rectplus.area(3,5));
		console.log(rectplus.pi);
		import perim from './rectPlus.js';
		console.log(perim(4,6));
	</script>
</html>